<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<!DOCTYPE html>
<html>
	<head>
		<meta name="renderer" content="webkit" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>功能清单</title>
		<style type="text/css">
		.content{padding:10px; margin:auto;}
		.head_title{text-align:center;}
		.ol_functions{ line-height:30px; font-size:15px; font-weight: bold; font-family:tahoma,Arial,Microsoft YaHei,\5b8b\4f53; }
		.ol_functions li{background:#eee;border-radius:5px; margin-bottom:5px; padding:5px;}
		.ol_functions a{display:inline-block;text-decoration:none;}
		.ol_functions a:hover{color:#F90;}
		.ol_functions span {min-width:400px; display: inline-block;}
		.fun_comment{color:#333; font-weight:normal; font-size:13px; padding:5px; }
		</style>
</head>
<body>
	<div class="content">
		<h2 class="head_title">功能清单</h2>
		<div>统一请求返回值：{"state":"0" (1.成功 0.失败),"data": 成功后返回的信息,"message":错误信息}</div>
		<ol class="ol_functions">
			<li>
				<span>首页</span><a target="functions" href="${pageContext.request.contextPath }/index">/index</a>
			</li>
			<li>
				<span>关于我们</span><a target="functions" href="${pageContext.request.contextPath }/about">/about</a>
			</li>
			<li>
				<span>投资项目列表</span><a target="functions" href="${pageContext.request.contextPath }/invest">/invest</a>
				<div class="fun_comment">
				请求参数:page:第几页<br/>
				返回结果：{"title":借款标题,"price":100万,"apr":借款利率,"limit":借款期限，"rate":投标进度,"timestr": 满标耗时,"status":标的状态}
				</div>
			</li>
			<li>
				<span>债权转让列表</span><a target="functions" href="${pageContext.request.contextPath }/invest/creditortransfer">/invest/creditortransfer</a>
				<div class="fun_comment">
				请求参数:page:第几页<br/>
				返回结果：{"title":债权名称,"price":购买价格,"apr":年化率,"days_surplus":剩余天数，"recovery":待收本息,"timestr": 转让耗时，'status':转让状态}
				</div>	
			</li>
			<li><span>标的详情</span><a target="functions" href="${pageContext.request.contextPath }/invest/view">/invest/view</a>
				<div class="fun_comment">
				请求参数:borrow_id:标的id
				</div>	
			</li>
			<li><span>债权转让详情</span><a target="functions" href="${pageContext.request.contextPath }/invest/transferview">/invest/transferview</a>
				<div class="fun_comment">
				请求参数:id:债权转让对象id
				</div>	
			</li>
			<li><span>投标</span><a target="functions" href="${pageContext.request.contextPath }/invest/tb">/invest/tb</a>
				<div class="fun_comment">
				请求参数:
				tbprice:投资金额;&nbsp;&nbsp;tbpaypwd:交易密码;&nbsp;&nbsp;borrow_id:标的id;&nbsp;&nbsp;rewardIds:红包id列表;&nbsp;&nbsp;volumeIds:代金券id列表
				</div>	
			</li>
			<li><span>购买债权</span><a target="functions" href="${pageContext.request.contextPath }/invest/buycreditor">/invest/buycreditor</a>
				<div class="fun_comment">
				请求参数:
				id:债权转让记录id
				</div>	
			</li>
		</ol>
	</div>
</body>
</html>